package com.example.mynote.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.TextView;

import com.example.mynote.R;
import com.example.mynote.base.BaseActivity;

public class ScActivity extends BaseActivity {

    private android.widget.ImageButton titleBack;
    private android.widget.TextView titleText;
    private android.widget.ListView scList;

    @Override
    protected int initLayout() {
        return R.layout.activity_sc;
    }

    @Override
    protected void initView() {

        titleBack = (ImageButton) findViewById(R.id.title_back);
        titleText = (TextView) findViewById(R.id.title_text);
        scList = (ListView) findViewById(R.id.sc_list);
    }

    @Override
    protected void initData() {

        titleBack.setOnClickListener(view -> finish());
        titleText.setText("我的收藏");
        scList.setAdapter(new BaseAdapter() {
            @Override
            public int getCount() {
                return 0;
            }

            @Override
            public Object getItem(int i) {
                return null;
            }

            @Override
            public long getItemId(int i) {
                return 0;
            }

            @Override
            public View getView(int i, View view, ViewGroup viewGroup) {
                return null;
            }
        });
    }
}